import request from '@/utils/request'
import {appConfig} from '../../config/app'

let service = appConfig.microServModules.mall + 'api/feedbackApi'
let servicefig = appConfig.microServModules.mall + 'api/serviceBillConfig'


export function nextVal(data) {
  return request(`${servicefig}/nextVal`, {method: 'get', data})
}

export function saveOrUpdate (data) {
  return request(`originGoods/saveOrUpdate`, {method: 'post', data: data})
}

export function getPageList (data) {
  return request(`/originGoods/getPageList`, {method: 'get', data})
}

export function getClassifyPageList (data) {
  return request(`/classify/getPageList`, {method: 'get', data})
}

export function findByClassifyId (data) {
  return request(`/originGoods/findByClassifyId`, {method: 'get', data})
}

export function getClassifyPageList2 (data) {
  return request(`/classify/list`, {method: 'get', data})
}
